<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="my.dao.*" %>
    
    
<%

	String id=request.getParameter("d_id");
	String name=request.getParameter("d_name");
	String remark=request.getParameter("d_remark");
	
	MyDao.update(
			"update dep set d_name=?,d_remark=? where d_id=?", 
			name,remark,id
	);

	
	out.print(MyDao.jsonMessage(true, "保存成功！"));
%>